<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
	die ('Please do not load this page directly. Thanks!');

if ( post_password_required() ) {
	echo '<p class="nocomments">This post is password protected. Enter the password to view comments.</p>';
	return;
}

if ( have_comments() ) :
?>
	<div id="comments"><?php comments_number('No Responses', 'One Response', '% Responses');?></div>
	<ol class="commentlist">
<?php 
		wp_list_comments(); 
?>
	</ol>
<?php
	if (get_option('page_comments')) :
		$comment_pages = paginate_comments_links('echo=0');
		if($comment_pages):
			echo '<div class="commentnavi"><span class="commentpages">'.$comment_pages.'</span></div>';
		endif;
	endif;
else : // if($comments)====this is displayed if there are no comments so far
	if ('open' == $post-> comment_status) :
		//If comments are open, but there are no comments.
	else : //got comments but now comments are closed
?>
		<p class="nocomments">Comments are closed.</p>
<?php 
	endif;
endif;

if ('open' == $post-> comment_status) : 
?><?php comment_form(); ?>
<?php 
endif; // if you delete this the sky will fall on your head 
?>